<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<link rel="icon" href="https://static.nowcoder.com/images/logo_87_87.png"/>
	<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" crossorigin="anonymous">
	<link rel="stylesheet" th:href="@{/css/global.css}" />
	<title>牛客网-关注</title>
</head>
<body>
	<div class="nk-container">
		<!-- 头部 -->
		<div th:replace="index::#indexHeader"></div>

		<!-- 内容 -->
		<div class="main">
			<div class="container">
				<div class="position-relative">
					<!-- 选项 -->
					<ul class="nav nav-tabs mb-3">
						<li class="nav-item">
							<a class="nav-link position-relative active" th:href="@{'/follow/followee/'+${currentUser.id}+'/1'}"><i class="text-info" th:text="${currentUser.username}"></i> 关注的人</a>
						</li>
						<li class="nav-item">
							<a class="nav-link position-relative" th:href="@{'/follow/follower/'+${currentUser.id}+'/1'}">关注 <i class="text-info" th:text="${currentUser.username}"></i> 的人</a>
						</li>
					</ul>
<!--					<a href="profile.html" class="text-muted position-absolute rt-0">返回个人主页&gt;</a>-->
				</div>
				
				<!-- 关注列表 -->
				<ul class="list-unstyled">
					<li th:each="user:${followUsers}" class="media pb-3 pt-3 mb-3 border-bottom position-relative">
						<a th:href="@{'/user/userPage.html?userId='+${user.id}}">
							<img th:src="@{${user.headerUrl}}" class="mr-4 rounded-circle user-header" style="height:50px;weight:50px" alt="用户头像" >
						</a>
						<div class="media-body">
							<h6 class="mt-0 mb-3">
								<span class="text-success" th:text="${user.username}"></span>
								<span class="float-right text-muted font-size-12">关注于 <i th:text="${#dates.format(followUsersTime.get(userStat.index),'yyyy-MM-dd HH:mm:ss')}"></i></span>
							</h6>
							<div>
								<th:block th:if="${!currPageUserIsOther}">

									<input type="hidden" th:value="${user.id}">
									<button type="button" class="btn btn-secondary btn-sm float-right follow-btn">已关注</button>
								</th:block>

							</div>
						</div>
					</li>

				</ul>
<!--				 分页-->
				<th:block th:if="${followUsers!=null && followUsers.size()>0}">
					<nav class="mt-5">
						<ul class="pagination justify-content-center">
							<li class="page-item"><a class="page-link" th:href="@{|${limitParam.path}1|}">首页</a></li>
							<li th:classappend="${limitParam.current==1?'disabled':''}" class="page-item"><a class="page-link"th:href="@{${limitParam.path}+${limitParam.current-1}}">上一页</a></li>
							<li th:each="index:${#numbers.sequence(limitParam.from,limitParam.to)}" class="page-item" th:classappend="${limitParam.current == index?'active':''}"><a class="page-link" th:href="@{${limitParam.path}+${index}}" th:text="${index}"></a></li>

							<li th:classappend="${limitParam.current == limitParam.total?'disabled':''}" class="page-item"><a class="page-link" th:href="@{${limitParam.path}+${limitParam.current+1}}">下一页</a></li>
							<li class="page-item"><a class="page-link" th:href="@{${limitParam.path}+${limitParam.total}}">末页</a></li>
						</ul>
					</nav>
				</th:block>

			</div>
		</div>

		<!-- 尾部 -->
		<footer class="bg-dark">
			<div class="container">
				<div class="row">
					<!-- 二维码 -->
					<div class="col-4 qrcode">
						<img src="https://uploadfiles.nowcoder.com/app/app_download.png" class="img-thumbnail" style="width:136px;" />
					</div>
					<!-- 公司信息 -->
					<div class="col-8 detail-info">
						<div class="row">
							<div class="col">
								<ul class="nav">
									<li class="nav-item">
										<a class="nav-link text-light" href="#">关于我们</a>
									</li>
									<li class="nav-item">
										<a class="nav-link text-light" href="#">加入我们</a>
									</li>
									<li class="nav-item">
										<a class="nav-link text-light" href="#">意见反馈</a>
									</li>
									<li class="nav-item">
										<a class="nav-link text-light" href="#">企业服务</a>
									</li>
									<li class="nav-item">
										<a class="nav-link text-light" href="#">联系我们</a>
									</li>
									<li class="nav-item">
										<a class="nav-link text-light" href="#">免责声明</a>
									</li>
									<li class="nav-item">
										<a class="nav-link text-light" href="#">友情链接</a>
									</li>
								</ul>
							</div>
						</div>
						<div class="row">
							<div class="col">
								<ul class="nav btn-group-vertical company-info">
									<li class="nav-item text-white-50">
										公司地址：北京市朝阳区大屯路东金泉时代3-2708北京牛客科技有限公司
									</li>
									<li class="nav-item text-white-50">
										联系方式：010-60728802(电话)&nbsp;&nbsp;&nbsp;&nbsp;admin@nowcoder.com
									</li>
									<li class="nav-item text-white-50">
										牛客科技©2018 All rights reserved
									</li>
									<li class="nav-item text-white-50">
										京ICP备14055008号-4 &nbsp;&nbsp;&nbsp;&nbsp;
										<img src="http://static.nowcoder.com/company/images/res/ghs.png" style="width:18px;" />
										京公网安备 11010502036488号
									</li>
								</ul>
							</div>
						</div>
					</div>
				</div>
			</div>
		</footer>
	</div>

	<script th:src="@{/js/jquery.js}" crossorigin="anonymous"></script>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" crossorigin="anonymous"></script>
	<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" crossorigin="anonymous"></script>
	<script th:src="@{/js/global.js}"></script>
	<script th:src="@{/js/profile.js}"></script>
</body>
</html>
